package com.bcmusic.music.feign;

import com.bcmusic.music.pojo.MusicPermission;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;

/**
 * @author yg
 */
@FeignClient("music")
@RequestMapping("/musicPermission")
public interface MusicPermissionFeign {
    /**
     * 根据id查询
     * @param id
     * @return
     */
    @ApiIgnore
    @GetMapping("getPermissionById")
    public Result<MusicPermission> getPermissionById(@RequestParam Integer id);

    /**
     * 根据id列表查询
     * @param idList
     * @return
     */
    @ApiIgnore
    @GetMapping("getPermissionByIdList")
    public Result<List<MusicPermission>>getPermissionByIdList(@RequestParam List<Integer> idList);
}
